<!--{block return}-->
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript">
wx.config({
	<!--{if $this->debug}-->debug: true,<!--{/if}-->
	appId: '$signPackage[appId]',
	timestamp: $signPackage[timestamp],
	nonceStr: '$signPackage[nonceStr]',
	signature: '$signPackage[signature]',
	jsApiList: [
		'onMenuShareTimeline',
		'onMenuShareAppMessage',
		'onMenuShareQQ',
		'onMenuShareWeibo',
		'chooseWXPay',
	]
});
wx.ready(function () {
     wx.onMenuShareTimeline({
          title: '$_G[weixin][title]',
          link: '$_G[weixin][link]',
          imgUrl: '$_G[weixin][imgUrl]',
          success: function (res) {},
     });
    wx.onMenuShareAppMessage({
          title: '$_G[weixin][title]',
          desc: '$_G[weixin][desc]',
          link: '$_G[weixin][link]',
          imgUrl: '$_G[weixin][imgUrl]',
          success: function (res) {},
    });
    wx.onMenuShareQQ({
          title: '$_G[weixin][title]',
          desc: '$_G[weixin][desc]',
          link: '$_G[weixin][link]',
          imgUrl: '$_G[weixin][imgUrl]',
          success: function (res) {},
    });
    wx.onMenuShareWeibo({
          title: '$_G[weixin][title]',
          desc: '$_G[weixin][desc]',
          link: '$_G[weixin][link]',
          imgUrl: '$_G[weixin][imgUrl]',
          success: function (res) {},
    });
});
</script>
<!--{/block}-->